#ifndef MFMCUSTOMPLOT_H
#define MFMCUSTOMPLOT_H
#include <QObject>
#include "qcustomplot.h"

class MFMCustomPlot : public QCustomPlot
{
protected:
    void mousePressEvent(QMouseEvent* event) override;
    void mouseReleaseEvent(QMouseEvent* event) override;

private:
    Q_OBJECT
    bool tooltipVisible = false;
    void hideTooltip()
    {
        QToolTip::hideText();
    }

public:
    MFMCustomPlot(QWidget* parent = nullptr);
    ~MFMCustomPlot();
    double xAxisValue=0;
};
#endif //MFMCUSTOMPLOT_H
